import axios from 'axios'
import { baseURL, getUUID } from '@/util/index'
const authorizationApi = {
    captcha() {
        const uuid = getUUID()
        return {
            src: baseURL + '/system/api/captcha?uuid=' + uuid,
            uuid
        }
    },
    login(param) {
        return axios.post('/system/api/login', param)
    },

    authorization() {
        return axios.post('/system/api/authorization')
    },

    logout() {
        return axios.get('/system/api/logout')
    }
}

export default authorizationApi